﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using WeifenLuo.WinFormsUI.Docking;

namespace CKNetFrameWork
{
    public partial class Frm_EducationMgr : DockContent
    {
        public Frm_EducationMgr()
        {
            InitializeComponent();
        }

        private void Frm_EducationMgr_Load(object sender, EventArgs e)
        {

        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {

        }
          
        private void buttonTeacher_Click(object sender, EventArgs e)
        {
            Button btn = (Button)sender;
            Frm_Main.GetMainForm().ShowContent(btn.Text);
        }

        private void buttonRoom_Click(object sender, EventArgs e)
        {
            Button btn = (Button)sender;
            Frm_Main.GetMainForm().ShowContent(btn.Text);
        }

        private void buttonCourse_Click(object sender, EventArgs e)
        {
            Button btn = (Button)sender;
            Frm_Main.GetMainForm().ShowContent(btn.Text);
        }

        private void buttonClass_Click(object sender, EventArgs e)
        {
            Button btn = (Button)sender;
            Frm_Main.GetMainForm().ShowContent(btn.Text);
        }

        private void buttonClassArr_Click(object sender, EventArgs e)
        {
            Button btn = (Button)sender;
            Frm_Main.GetMainForm().ShowContent(btn.Text);
        }

        private void buttonArrDetail_Click(object sender, EventArgs e)
        {
            Button btn = (Button)sender;
            Frm_Main.GetMainForm().ShowContent(btn.Text);
        }

        private void buttonCourseTab_Click(object sender, EventArgs e)
        {
            Button btn = (Button)sender;
            Frm_Main.GetMainForm().ShowContent(btn.Text);
        }

        private void linkLabelFeeItem_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            LinkLabel btn = (LinkLabel)sender;
            Frm_Main.GetMainForm().ShowContent(btn.Text);
        }

        private void linkLabelTimeSeg_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            LinkLabel btn = (LinkLabel)sender;
            Frm_Main.GetMainForm().ShowContent(btn.Text);
        }

        private void linkLabelHelp_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Help.ShowHelp(this, Frm_Main.m_strHelpPath, Frm_Main.m_Navigator);
        }

        private void linkLabelHome_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            System.Diagnostics.Process.Start("http://www.chenksoft.com"); 
        }
    }
}
